<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::Rect类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">1.0.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="class_sky_engine2d_1_1_rect-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::Rect类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>矩形  
 <a href="class_sky_engine2d_1_1_rect.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_rect_8h_source.html">Rect.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a070f9ce88fcd3d4d9704351852ee3281"><td class="memItemLeft" align="right" valign="top"><a id="a070f9ce88fcd3d4d9704351852ee3281"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a070f9ce88fcd3d4d9704351852ee3281">Rect</a> ()</td></tr>
<tr class="memdesc:a070f9ce88fcd3d4d9704351852ee3281"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造 <br /></td></tr>
<tr class="separator:a070f9ce88fcd3d4d9704351852ee3281"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6663520a2d6f24493d134e4eb0bdda07"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a6663520a2d6f24493d134e4eb0bdda07">Rect</a> (float left_bottom_x, float left_bottom_y, float width, float height)</td></tr>
<tr class="memdesc:a6663520a2d6f24493d134e4eb0bdda07"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造  <a href="#a6663520a2d6f24493d134e4eb0bdda07">更多...</a><br /></td></tr>
<tr class="separator:a6663520a2d6f24493d134e4eb0bdda07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4804f42c68c44f65b0f8934f873a1d9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#ac4804f42c68c44f65b0f8934f873a1d9">Rect</a> (float left_bottom_x, float left_bottom_y, const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;size)</td></tr>
<tr class="memdesc:ac4804f42c68c44f65b0f8934f873a1d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造  <a href="#ac4804f42c68c44f65b0f8934f873a1d9">更多...</a><br /></td></tr>
<tr class="separator:ac4804f42c68c44f65b0f8934f873a1d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a469b257bff681c2c655843f9d8f15b52"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a469b257bff681c2c655843f9d8f15b52">Rect</a> (const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;left_bottom_pos, const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;size)</td></tr>
<tr class="memdesc:a469b257bff681c2c655843f9d8f15b52"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造  <a href="#a469b257bff681c2c655843f9d8f15b52">更多...</a><br /></td></tr>
<tr class="separator:a469b257bff681c2c655843f9d8f15b52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73c92f4e39cefda0775db48a13c72537"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a73c92f4e39cefda0775db48a13c72537">Rect</a> (const <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a> &amp;rect)</td></tr>
<tr class="memdesc:a73c92f4e39cefda0775db48a13c72537"><td class="mdescLeft">&#160;</td><td class="mdescRight">拷贝构造  <a href="#a73c92f4e39cefda0775db48a13c72537">更多...</a><br /></td></tr>
<tr class="separator:a73c92f4e39cefda0775db48a13c72537"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f7c455e4ea1a6abd6a5321c76eced32"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a3f7c455e4ea1a6abd6a5321c76eced32">move</a> (const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;dt)</td></tr>
<tr class="memdesc:a3f7c455e4ea1a6abd6a5321c76eced32"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动一段距离  <a href="#a3f7c455e4ea1a6abd6a5321c76eced32">更多...</a><br /></td></tr>
<tr class="separator:a3f7c455e4ea1a6abd6a5321c76eced32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7fbd8aa8d46bf1749e52b0a60d3287b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#ac7fbd8aa8d46bf1749e52b0a60d3287b">move</a> (float x_dt, float y_dt)</td></tr>
<tr class="memdesc:ac7fbd8aa8d46bf1749e52b0a60d3287b"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动一段距离  <a href="#ac7fbd8aa8d46bf1749e52b0a60d3287b">更多...</a><br /></td></tr>
<tr class="separator:ac7fbd8aa8d46bf1749e52b0a60d3287b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3eb038b8bd11317376591ecb17377323"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a3eb038b8bd11317376591ecb17377323">moveTo</a> (const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;pos)</td></tr>
<tr class="memdesc:a3eb038b8bd11317376591ecb17377323"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动到某个位置  <a href="#a3eb038b8bd11317376591ecb17377323">更多...</a><br /></td></tr>
<tr class="separator:a3eb038b8bd11317376591ecb17377323"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac57cdaad5701dd0eb3e35d609a0ecdbd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#ac57cdaad5701dd0eb3e35d609a0ecdbd">moveTo</a> (float pos_x, float pos_y)</td></tr>
<tr class="memdesc:ac57cdaad5701dd0eb3e35d609a0ecdbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动到某个位置  <a href="#ac57cdaad5701dd0eb3e35d609a0ecdbd">更多...</a><br /></td></tr>
<tr class="separator:ac57cdaad5701dd0eb3e35d609a0ecdbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32edb11bdb24d52ec1a2b6964afd6395"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a32edb11bdb24d52ec1a2b6964afd6395">containPoint</a> (const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;point) const</td></tr>
<tr class="memdesc:a32edb11bdb24d52ec1a2b6964afd6395"><td class="mdescLeft">&#160;</td><td class="mdescRight">点是否被矩形包含  <a href="#a32edb11bdb24d52ec1a2b6964afd6395">更多...</a><br /></td></tr>
<tr class="separator:a32edb11bdb24d52ec1a2b6964afd6395"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8ad708b19de85f7f928f36045c4409f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#ab8ad708b19de85f7f928f36045c4409f">intersectWithLine</a> (const <a class="el" href="class_sky_engine2d_1_1_line.html">Line</a> &amp;line) const</td></tr>
<tr class="memdesc:ab8ad708b19de85f7f928f36045c4409f"><td class="mdescLeft">&#160;</td><td class="mdescRight">线段是否与矩形相交  <a href="#ab8ad708b19de85f7f928f36045c4409f">更多...</a><br /></td></tr>
<tr class="separator:ab8ad708b19de85f7f928f36045c4409f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2237e0c81d51aed6828f4ec83c9f84fc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a2237e0c81d51aed6828f4ec83c9f84fc">intersectsWithRect</a> (const <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a> &amp;rect) const</td></tr>
<tr class="memdesc:a2237e0c81d51aed6828f4ec83c9f84fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">两个矩形是否相交  <a href="#a2237e0c81d51aed6828f4ec83c9f84fc">更多...</a><br /></td></tr>
<tr class="separator:a2237e0c81d51aed6828f4ec83c9f84fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e3485db713ae98e1686436321a4aa6f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a8e3485db713ae98e1686436321a4aa6f">operator==</a> (const <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a> &amp;r) const</td></tr>
<tr class="memdesc:a8e3485db713ae98e1686436321a4aa6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">重载相等运算符  <a href="#a8e3485db713ae98e1686436321a4aa6f">更多...</a><br /></td></tr>
<tr class="separator:a8e3485db713ae98e1686436321a4aa6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4d7bc8708396bc3bbaacf1420c82243"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#ac4d7bc8708396bc3bbaacf1420c82243">operator D2D1_RECT_F</a> ()</td></tr>
<tr class="memdesc:ac4d7bc8708396bc3bbaacf1420c82243"><td class="mdescLeft">&#160;</td><td class="mdescRight">与D2d 类型转换  <a href="#ac4d7bc8708396bc3bbaacf1420c82243">更多...</a><br /></td></tr>
<tr class="separator:ac4d7bc8708396bc3bbaacf1420c82243"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9230d7720580dfcbb96558438283694f"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a9230d7720580dfcbb96558438283694f">getLeft</a> () const</td></tr>
<tr class="memdesc:a9230d7720580dfcbb96558438283694f"><td class="mdescLeft">&#160;</td><td class="mdescRight">矩形左边的x坐标  <a href="#a9230d7720580dfcbb96558438283694f">更多...</a><br /></td></tr>
<tr class="separator:a9230d7720580dfcbb96558438283694f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa582ce22e95cf069d31993a01bad1c8b"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#aa582ce22e95cf069d31993a01bad1c8b">getRight</a> () const</td></tr>
<tr class="memdesc:aa582ce22e95cf069d31993a01bad1c8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">矩形右边的x坐标  <a href="#aa582ce22e95cf069d31993a01bad1c8b">更多...</a><br /></td></tr>
<tr class="separator:aa582ce22e95cf069d31993a01bad1c8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c64f9f2dd9518afb2e86c2609239c90"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a5c64f9f2dd9518afb2e86c2609239c90">getTop</a> () const</td></tr>
<tr class="memdesc:a5c64f9f2dd9518afb2e86c2609239c90"><td class="mdescLeft">&#160;</td><td class="mdescRight">矩形顶部的y坐标  <a href="#a5c64f9f2dd9518afb2e86c2609239c90">更多...</a><br /></td></tr>
<tr class="separator:a5c64f9f2dd9518afb2e86c2609239c90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1dbd956c536722d8c6f595977ea5272d"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a1dbd956c536722d8c6f595977ea5272d">getBottom</a> () const</td></tr>
<tr class="memdesc:a1dbd956c536722d8c6f595977ea5272d"><td class="mdescLeft">&#160;</td><td class="mdescRight">矩形底部的y坐标  <a href="#a1dbd956c536722d8c6f595977ea5272d">更多...</a><br /></td></tr>
<tr class="separator:a1dbd956c536722d8c6f595977ea5272d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4800f09e615e757cbdf8a68e3797fffc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a4800f09e615e757cbdf8a68e3797fffc">getBottomLeft</a> () const</td></tr>
<tr class="memdesc:a4800f09e615e757cbdf8a68e3797fffc"><td class="mdescLeft">&#160;</td><td class="mdescRight">矩形左下角的坐标  <a href="#a4800f09e615e757cbdf8a68e3797fffc">更多...</a><br /></td></tr>
<tr class="separator:a4800f09e615e757cbdf8a68e3797fffc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ff859dc3515f209d8e95cbecb431638"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a1ff859dc3515f209d8e95cbecb431638">getTopLeft</a> () const</td></tr>
<tr class="separator:a1ff859dc3515f209d8e95cbecb431638"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa974b273803b0c331fba4ec79cfdc639"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#aa974b273803b0c331fba4ec79cfdc639">getBottomRight</a> () const</td></tr>
<tr class="memdesc:aa974b273803b0c331fba4ec79cfdc639"><td class="mdescLeft">&#160;</td><td class="mdescRight">矩形右下角的坐标  <a href="#aa974b273803b0c331fba4ec79cfdc639">更多...</a><br /></td></tr>
<tr class="separator:aa974b273803b0c331fba4ec79cfdc639"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7524be9fdc3347959f5774f1aad31365"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a7524be9fdc3347959f5774f1aad31365">getTopRight</a> () const</td></tr>
<tr class="memdesc:a7524be9fdc3347959f5774f1aad31365"><td class="mdescLeft">&#160;</td><td class="mdescRight">矩形右上角的坐标  <a href="#a7524be9fdc3347959f5774f1aad31365">更多...</a><br /></td></tr>
<tr class="separator:a7524be9fdc3347959f5774f1aad31365"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae97111130e08708f229d3f8c23be5057"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#ae97111130e08708f229d3f8c23be5057">setLeft</a> (float left)</td></tr>
<tr class="memdesc:ae97111130e08708f229d3f8c23be5057"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置矩形的左边的x坐标  <a href="#ae97111130e08708f229d3f8c23be5057">更多...</a><br /></td></tr>
<tr class="separator:ae97111130e08708f229d3f8c23be5057"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07c34bb6f649860176341b87a1da90e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a07c34bb6f649860176341b87a1da90e7">setRight</a> (float right)</td></tr>
<tr class="memdesc:a07c34bb6f649860176341b87a1da90e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置矩形的右边的x坐标  <a href="#a07c34bb6f649860176341b87a1da90e7">更多...</a><br /></td></tr>
<tr class="separator:a07c34bb6f649860176341b87a1da90e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c26918ef93317ce10e03e265f149efe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a6c26918ef93317ce10e03e265f149efe">setTop</a> (float top)</td></tr>
<tr class="memdesc:a6c26918ef93317ce10e03e265f149efe"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置矩形的上边的y坐标  <a href="#a6c26918ef93317ce10e03e265f149efe">更多...</a><br /></td></tr>
<tr class="separator:a6c26918ef93317ce10e03e265f149efe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2dea94befdb96b179ea951cda9a70c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#ab2dea94befdb96b179ea951cda9a70c9">setBottom</a> (float bottom)</td></tr>
<tr class="memdesc:ab2dea94befdb96b179ea951cda9a70c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置矩形的下边的y坐标  <a href="#ab2dea94befdb96b179ea951cda9a70c9">更多...</a><br /></td></tr>
<tr class="separator:ab2dea94befdb96b179ea951cda9a70c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add528770fbe6671551dac05bf85b172e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#add528770fbe6671551dac05bf85b172e">getSize</a> () const</td></tr>
<tr class="memdesc:add528770fbe6671551dac05bf85b172e"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取矩形的尺寸  <a href="#add528770fbe6671551dac05bf85b172e">更多...</a><br /></td></tr>
<tr class="separator:add528770fbe6671551dac05bf85b172e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a707cad14b9bcdd995e138a222a482813"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a707cad14b9bcdd995e138a222a482813">getWidth</a> () const</td></tr>
<tr class="memdesc:a707cad14b9bcdd995e138a222a482813"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取矩形的宽  <a href="#a707cad14b9bcdd995e138a222a482813">更多...</a><br /></td></tr>
<tr class="separator:a707cad14b9bcdd995e138a222a482813"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a709473900c6fc54029e8f3fa6d40a166"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a709473900c6fc54029e8f3fa6d40a166">getHeight</a> () const</td></tr>
<tr class="memdesc:a709473900c6fc54029e8f3fa6d40a166"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取矩形的高  <a href="#a709473900c6fc54029e8f3fa6d40a166">更多...</a><br /></td></tr>
<tr class="separator:a709473900c6fc54029e8f3fa6d40a166"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfba6e760949c23216c0c5dbcc56fff0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#abfba6e760949c23216c0c5dbcc56fff0">setSize</a> (const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;size)</td></tr>
<tr class="memdesc:abfba6e760949c23216c0c5dbcc56fff0"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置矩形的尺寸  <a href="#abfba6e760949c23216c0c5dbcc56fff0">更多...</a><br /></td></tr>
<tr class="separator:abfba6e760949c23216c0c5dbcc56fff0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a659f3f062b35869a446b46b0325352de"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a659f3f062b35869a446b46b0325352de">setWidth</a> (float w)</td></tr>
<tr class="memdesc:a659f3f062b35869a446b46b0325352de"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置矩形的宽  <a href="#a659f3f062b35869a446b46b0325352de">更多...</a><br /></td></tr>
<tr class="separator:a659f3f062b35869a446b46b0325352de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a751f0030ce617696c049c0821fed7f5d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#a751f0030ce617696c049c0821fed7f5d">setHeight</a> (float h)</td></tr>
<tr class="memdesc:a751f0030ce617696c049c0821fed7f5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置矩形的高  <a href="#a751f0030ce617696c049c0821fed7f5d">更多...</a><br /></td></tr>
<tr class="separator:a751f0030ce617696c049c0821fed7f5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade6b657fb8f7b5a58d69992e17182ede"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_rect.html#ade6b657fb8f7b5a58d69992e17182ede">setBottomLeft</a> (const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;bottom_left)</td></tr>
<tr class="memdesc:ade6b657fb8f7b5a58d69992e17182ede"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置左下角的坐标  <a href="#ade6b657fb8f7b5a58d69992e17182ede">更多...</a><br /></td></tr>
<tr class="separator:ade6b657fb8f7b5a58d69992e17182ede"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a45610aa84100ff91ee9fedfe96fdbfb8"><td class="memItemLeft" align="right" valign="top"><a id="a45610aa84100ff91ee9fedfe96fdbfb8"></a>
static <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Zero</b></td></tr>
<tr class="separator:a45610aa84100ff91ee9fedfe96fdbfb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>矩形 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a6663520a2d6f24493d134e4eb0bdda07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6663520a2d6f24493d134e4eb0bdda07">&#9670;&nbsp;</a></span>Rect() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SkyEngine2d::Rect::Rect </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>left_bottom_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>left_bottom_y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>left_bottom_x 左下角的坐标 x </td></tr>
    <tr><td class="paramname">float</td><td>left_bottom_y 左下角的坐标 y </td></tr>
    <tr><td class="paramname">float</td><td>width 尺寸 宽度 </td></tr>
    <tr><td class="paramname">float</td><td>height 尺寸 高度 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac4804f42c68c44f65b0f8934f873a1d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4804f42c68c44f65b0f8934f873a1d9">&#9670;&nbsp;</a></span>Rect() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SkyEngine2d::Rect::Rect </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>left_bottom_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>left_bottom_y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>left_bottom_x 左下角的坐标 x </td></tr>
    <tr><td class="paramname">float</td><td>left_bottom_y 左下角的坐标 y </td></tr>
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_size.html" title="尺寸">Size</a> &amp; size 尺寸 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a469b257bff681c2c655843f9d8f15b52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a469b257bff681c2c655843f9d8f15b52">&#9670;&nbsp;</a></span>Rect() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SkyEngine2d::Rect::Rect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;&#160;</td>
          <td class="paramname"><em>left_bottom_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_vector2.html" title="2D向量">Vector2</a> &amp; left_bottom_pos 左下角的坐标 </td></tr>
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_size.html" title="尺寸">Size</a> &amp; size 尺寸 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a73c92f4e39cefda0775db48a13c72537"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73c92f4e39cefda0775db48a13c72537">&#9670;&nbsp;</a></span>Rect() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SkyEngine2d::Rect::Rect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>拷贝构造 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_rect.html" title="矩形">Rect</a> &amp; rect </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a32edb11bdb24d52ec1a2b6964afd6395"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32edb11bdb24d52ec1a2b6964afd6395">&#9670;&nbsp;</a></span>containPoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SkyEngine2d::Rect::containPoint </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>点是否被矩形包含 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_vector2.html" title="2D向量">Vector2</a> &amp; point 点 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a1dbd956c536722d8c6f595977ea5272d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1dbd956c536722d8c6f595977ea5272d">&#9670;&nbsp;</a></span>getBottom()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float SkyEngine2d::Rect::getBottom </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>矩形底部的y坐标 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="a4800f09e615e757cbdf8a68e3797fffc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4800f09e615e757cbdf8a68e3797fffc">&#9670;&nbsp;</a></span>getBottomLeft()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> SkyEngine2d::Rect::getBottomLeft </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>矩形左下角的坐标 </p>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_sky_engine2d_1_1_vector2.html" title="2D向量">Vector2</a> </dd></dl>

</div>
</div>
<a id="aa974b273803b0c331fba4ec79cfdc639"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa974b273803b0c331fba4ec79cfdc639">&#9670;&nbsp;</a></span>getBottomRight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> SkyEngine2d::Rect::getBottomRight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>矩形右下角的坐标 </p>
<dl class="section return"><dt>返回</dt><dd>ForwardDeclare::SkyEngine2d::Vector2 </dd></dl>

</div>
</div>
<a id="a709473900c6fc54029e8f3fa6d40a166"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a709473900c6fc54029e8f3fa6d40a166">&#9670;&nbsp;</a></span>getHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float SkyEngine2d::Rect::getHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取矩形的高 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="a9230d7720580dfcbb96558438283694f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9230d7720580dfcbb96558438283694f">&#9670;&nbsp;</a></span>getLeft()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float SkyEngine2d::Rect::getLeft </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>矩形左边的x坐标 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="aa582ce22e95cf069d31993a01bad1c8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa582ce22e95cf069d31993a01bad1c8b">&#9670;&nbsp;</a></span>getRight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float SkyEngine2d::Rect::getRight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>矩形右边的x坐标 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="add528770fbe6671551dac05bf85b172e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add528770fbe6671551dac05bf85b172e">&#9670;&nbsp;</a></span>getSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a>&amp; SkyEngine2d::Rect::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取矩形的尺寸 </p>
<dl class="section return"><dt>返回</dt><dd>const <a class="el" href="class_sky_engine2d_1_1_size.html" title="尺寸">SkyEngine2d::Size</a>&amp; </dd></dl>

</div>
</div>
<a id="a5c64f9f2dd9518afb2e86c2609239c90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c64f9f2dd9518afb2e86c2609239c90">&#9670;&nbsp;</a></span>getTop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float SkyEngine2d::Rect::getTop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>矩形顶部的y坐标 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="a1ff859dc3515f209d8e95cbecb431638"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ff859dc3515f209d8e95cbecb431638">&#9670;&nbsp;</a></span>getTopLeft()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> SkyEngine2d::Rect::getTopLeft </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>ForwardDeclare::SkyEngine2d::Vector2 </dd></dl>

</div>
</div>
<a id="a7524be9fdc3347959f5774f1aad31365"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7524be9fdc3347959f5774f1aad31365">&#9670;&nbsp;</a></span>getTopRight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> SkyEngine2d::Rect::getTopRight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>矩形右上角的坐标 </p>
<dl class="section return"><dt>返回</dt><dd>ForwardDeclare::SkyEngine2d::Vector2 </dd></dl>

</div>
</div>
<a id="a707cad14b9bcdd995e138a222a482813"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a707cad14b9bcdd995e138a222a482813">&#9670;&nbsp;</a></span>getWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float SkyEngine2d::Rect::getWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取矩形的宽 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="a2237e0c81d51aed6828f4ec83c9f84fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2237e0c81d51aed6828f4ec83c9f84fc">&#9670;&nbsp;</a></span>intersectsWithRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SkyEngine2d::Rect::intersectsWithRect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>两个矩形是否相交 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_rect.html" title="矩形">Rect</a> &amp; rect 矩形 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="ab8ad708b19de85f7f928f36045c4409f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8ad708b19de85f7f928f36045c4409f">&#9670;&nbsp;</a></span>intersectWithLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SkyEngine2d::Rect::intersectWithLine </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_line.html">Line</a> &amp;&#160;</td>
          <td class="paramname"><em>line</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>线段是否与矩形相交 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_line.html">Line</a> &amp; line 线段 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a3f7c455e4ea1a6abd6a5321c76eced32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f7c455e4ea1a6abd6a5321c76eced32">&#9670;&nbsp;</a></span>move() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::move </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;&#160;</td>
          <td class="paramname"><em>dt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动一段距离 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_vector2.html" title="2D向量">Vector2</a> &amp; dt 移动的增量 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="ac7fbd8aa8d46bf1749e52b0a60d3287b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7fbd8aa8d46bf1749e52b0a60d3287b">&#9670;&nbsp;</a></span>move() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::move </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x_dt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y_dt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动一段距离 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>x_dt 移动的增量 </td></tr>
    <tr><td class="paramname">float</td><td>y_dt 移动的增量 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a3eb038b8bd11317376591ecb17377323"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3eb038b8bd11317376591ecb17377323">&#9670;&nbsp;</a></span>moveTo() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::moveTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动到某个位置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_vector2.html" title="2D向量">Vector2</a> &amp; pos目标点 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="ac57cdaad5701dd0eb3e35d609a0ecdbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac57cdaad5701dd0eb3e35d609a0ecdbd">&#9670;&nbsp;</a></span>moveTo() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::moveTo </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>pos_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>pos_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动到某个位置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>pos_x 目标点 x </td></tr>
    <tr><td class="paramname">float</td><td>pos_y 目标点 y </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="ac4d7bc8708396bc3bbaacf1420c82243"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4d7bc8708396bc3bbaacf1420c82243">&#9670;&nbsp;</a></span>operator D2D1_RECT_F()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SkyEngine2d::Rect::operator D2D1_RECT_F </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>与D2d 类型转换 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a8e3485db713ae98e1686436321a4aa6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e3485db713ae98e1686436321a4aa6f">&#9670;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SkyEngine2d::Rect::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a> &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>重载相等运算符 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_rect.html" title="矩形">Rect</a> &amp; r </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="ab2dea94befdb96b179ea951cda9a70c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2dea94befdb96b179ea951cda9a70c9">&#9670;&nbsp;</a></span>setBottom()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::setBottom </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>bottom</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置矩形的下边的y坐标 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>bottom </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="ade6b657fb8f7b5a58d69992e17182ede"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade6b657fb8f7b5a58d69992e17182ede">&#9670;&nbsp;</a></span>setBottomLeft()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::setBottomLeft </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;&#160;</td>
          <td class="paramname"><em>bottom_left</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置左下角的坐标 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_vector2.html" title="2D向量">Vector2</a> &amp; bottom_left </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a751f0030ce617696c049c0821fed7f5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a751f0030ce617696c049c0821fed7f5d">&#9670;&nbsp;</a></span>setHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::setHeight </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>h</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置矩形的高 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>h </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="ae97111130e08708f229d3f8c23be5057"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae97111130e08708f229d3f8c23be5057">&#9670;&nbsp;</a></span>setLeft()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::setLeft </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>left</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置矩形的左边的x坐标 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>left </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a07c34bb6f649860176341b87a1da90e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07c34bb6f649860176341b87a1da90e7">&#9670;&nbsp;</a></span>setRight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::setRight </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>right</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置矩形的右边的x坐标 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>right </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="abfba6e760949c23216c0c5dbcc56fff0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfba6e760949c23216c0c5dbcc56fff0">&#9670;&nbsp;</a></span>setSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::setSize </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置矩形的尺寸 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_sky_engine2d_1_1_size.html" title="尺寸">Size</a> &amp; size </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a6c26918ef93317ce10e03e265f149efe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c26918ef93317ce10e03e265f149efe">&#9670;&nbsp;</a></span>setTop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::setTop </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>top</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置矩形的上边的y坐标 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>top </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a659f3f062b35869a446b46b0325352de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a659f3f062b35869a446b46b0325352de">&#9670;&nbsp;</a></span>setWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Rect::setWidth </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>w</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置矩形的宽 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>w </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/base/<a class="el" href="_rect_8h_source.html">Rect.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
